<template>
  <div>{{this.$store.state.count}}</div>
</template>

<script>
  import {mapState} from 'vuex'
  export default {
    name: "MapState",
    computed:{
      //...mapState 和...mapGetters 都定义在computed计算属性中
      ...mapState(['getCounts'])
    }
  }
</script>

<style scoped>

</style>
